C/Python中的国际数据加密算法(IDEA)

2024-05-14 18:25:21 发布

您现在位置:Python中文网/ 问答频道 /正文

我希望在我的一个程序中实现IDEA算法以实现加密目的。一开始我想实现它,但很快就放弃了,因为它对我来说太复杂了。我在网上搜索过任何与此相同的库实现,并找到了mcrypt。但idea是mcrypt的一个非免费包,正如它所说的here。我有什么办法可以给麦克里普特加个主意吗?或者有没有用C/Python提供这种加密功能的库?在


Tags: 程序目的功能算法here主意办法mcrypt
2条回答

您可以从a web site获得idea模块,将idea.c和相关文件放入其中,您应该能够重新构建libmcrypt(如果使用的话,还可以重新构建mcrypt)。您也可以使用GPG版本,或者自己构建一个单独的库,但是两者都不是那么简单。在

2015年更新: IDEA的最后一批专利显然在2012年到期。然而,作为一种64位的分组密码,它的设计已经相当过时,因此在新的系统设计中不应考虑它。在


这种“非自由”的说法是因为密码在欧洲、美国和日本都有专利权。在

您仍然可以下载并编译mcrypt IDEA模块,或者在启用IDEA密码的情况下编译OpenSSL。由您来确保您没有侵犯专利。专利所有人Ascom Systec Ltd.为某些应用提供免版税:

The IDEA algorithm is patented by Ascom Systec Ltd. of CH-5506 Maegenwil, Switzerland, who allow it to be used on a royalty-free basis for certain non-profit applications. Commercial users must obtain a license from the company in order to use IDEA. IDEA may be used on a royalty-free basis under the following conditions:

Free use for private purposes:

The free use of software containing the algorithm is strictly limited to non revenue generating data transfer between private individuals, ie not serving commercial purposes. Requests by freeware developers to obtain a royalty-free license to spread an application program containing the algorithm for non-commercial purposes must be directed to Ascom.

Special offer for shareware developers:

There is a special waiver for shareware developers. Such waiver eliminates the upfront fees as well as royalties for the first US$10,000 gross sales of a product containing the algorithm if and only if:

  1. The product is being sold for a minimum of US$10 and a maximum of US$50.
  2. The source code for the shareware is available to the public.

    Special conditions for research projects:

    The use of the algorithm in research projects is free provided that it serves the purpose of such project and within the project duration. Any use of the algorithm after the termination of a project including activities resulting from a project and for purposes not directly related to the project requires a license.

    Ascom Tech requires the following notice to be included for freeware
    products:

    This software product contains the IDEA algorithm as described and claimed in US patent 5,214,703, EPO patent 0482154 (covering Austria, France, Germany, Italy, the Netherlands, Spain, Sweden, Switzerland, and the UK), and Japanese patent application 508119/1991, "Device for the conversion of a digital block and use of same" (hereinafter referred to as "the algorithm"). Any use of the algorithm for commercial purposes is thus subject to a license from Ascom
    Systec Ltd. of CH-5506 Maegenwil (Switzerland), being the patentee and sole owner of all rights, including the trademark IDEA.

    Commercial purposes shall mean any revenue generating purpose including but not limited to:

    i) Using the algorithm for company internal purposes (subject to a site license).

    ii) Incorporating the algorithm into any software and distributing such software and/or providing services relating thereto to others (subject to a product license).

    iii) Using a product containing the algorithm not covered by an IDEA license (subject to an end user license).

    All such end user license agreements are available exclusively from Ascom
    Systec Ltd and may be requested via the WWW at http://www.ascom.ch/systec or by email to idea@ascom.ch.

    Use other than for commercial purposes is strictly limited to non-revenue generating data transfer between private individuals. The use by government agencies, non-profit organizations, etc is considered as use for commercial purposes but may be subject to special conditions. Any misuse will be prosecuted.

相关问题 更多 >

    热门问题