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

发布于 2024-10-10 06:10:51 字数 262 浏览 5 评论 0原文

我希望在我的一个程序中实现 IDEA 算法以用于加密目的。我一开始想过实施它,但很快就放弃了这个想法,因为它对我来说太复杂而难以实施。我在网上搜索了相同的库实现,并坚持使用 mcrypt。但idea是一个非免费的mcrypt包,正如它所说的这里。有什么办法可以将 IDEA 添加到 mcrypt 中吗?或者是否有任何库在 C/Python 中提供这种加密功能?

I wish to implement IDEA algorithm in one of my programs for encryption purposes. I thought of implementing it at first but quickly gave up the idea as it seemed too complex for me to implement. I searched over the net for any library implementation of the same and stuck upon mcrypt. But idea is a non-free package of mcrypt as it says here. Is there any way I can add IDEA to mcrypt? Or is there any library which provides this encryption functionality in C/Python?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

一绘本一梦想 2024-10-17 06:10:51

2015 年更新:
IDEA 的最后一项专利显然已于 2012 年到期。然而,作为 64 位块大小密码,其设计已经相当过时,因此不应考虑将其用于新的系统设计。


IDEA 的“非自由”描述是因为该密码在欧洲、美国和日本受到专利保护。

您仍然可以下载并编译 mcrypt IDEA 模块,或者在启用 IDEA 密码的情况下编译 OpenSSL。您有责任确保自己没有侵犯专利。专利所有者 Ascom Systec Ltd. 已针对某些应用提供免版税的服务:

IDEA算法已获得专利
ASCOM Systec Ltd. CH-5506
瑞士梅根维尔,谁允许
免版税使用
某些非营利应用程序。
商业用户必须获得许可证
为了使用从公司
主意。 IDEA 可以用于
免版税基础上
以下条件:

免费用于私人目的:

免费使用包含以下内容的软件
该算法严格限于
非创收数据传输
私人之间,即不
服务于商业目的。
免费软件开发者的要求
获得免版税许可
传播应用程序
包含算法
必须是非商业目的
定向到 Ascom。

共享软件特别优惠
开发人员:

有一项特殊豁免
共享软件开发商。此类弃权
也消除了预付费用
作为前 10,000 美元的特许权使用费
产品的总销售额包含
该算法当且仅当:

  1. 该产品的售价最低为 10 美元,最高为
    50 美元。
  2. 该共享软件的源代码已向公众开放。

    研究的特殊条件
    项目:

    算法在研究中的运用
    项目是免费的,前提是
    服务于此类项目的目的
    并在项目工期内。任何
    后使用该算法
    项目的终止包括
    项目产生的活动
    以及用于不直接相关的目的
    该项目需要许可证。

    Ascom Tech 需要以下内容
    包含免费软件的通知
    产品:

    该软件产品包含
    IDEA 算法如上所述和
    欧洲专利局 (EPO) 美国专利 5,214,703 中要求保护
    专利 0482154(覆盖奥地利,
    法国、德国、意大利、
    荷兰、西班牙、瑞典、
    瑞士、英国)和日本
    专利申请 508119/1991,
    “用于转换的装置
    数字块及其使用"
    (以下简称“
    算法”)。任何使用
    商业用途的算法是
    因此需要获得 Ascom 的许可
    CH-5506 Maegenwil 的 Systec Ltd.
    (瑞士),作为专利权人和
    所有权利的唯一所有者,包括
    商标 IDEA。

    商业目的是指任何
    创收目的包括
    但不限于:

    i) 使用公司算法
    内部目的(受网站
    许可证)。

    ii) 将算法纳入
    任何软件并分发此类
    软件和/或向他人提供与之相关的服务
    (受
    产品许可证)。

    iii) 使用含有以下成分的产品
    IDEA 未涵盖的算法
    执照
    (需获得最终用户许可)。

    所有此类最终用户许可协议
    由 Ascom 独家提供
    Systec Ltd 可以通过以下方式请求
    WWW 位于 http://www.ascom.ch/systec
    或通过电子邮件发送至[电子邮件受保护]

    商业用途以外的用途
    目的严格限于
    非创收数据传输
    私人之间。用途
    由政府机构、非营利组织
    组织等被认为是
    用于商业目的,但可能
    须遵守特殊条件。任何
    滥用将被起诉。

2015 Update:
The last of the IDEA patents apparently expired in 2012. However, as a 64-bit block size cipher its design is quite outdated, so it should not be considered for new system designs.


The "non-free" description of IDEA is because the cipher is patent-encumbered in Europe, the US and Japan.

You can still download and compile the mcrypt IDEA module, or compile OpenSSL with the IDEA cipher enabled. It is up to you to ensure that you are not infringing the patent(s). The patent owners, Ascom Systec Ltd., have made it available royalty-free for certain applications:

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 [email protected].

    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.

冷情 2024-10-17 06:10:51

您可以从网站获取创意模块,然后放弃创意。 c 和相关文件,您应该能够重建 libmcrypt (如果您使用它,还可以重建 mcrypt)。您还可以使用 GPG 版本,或者自己构建一个单独的库,但都没有那么简单。

You can get hold of the idea module from a web site, drop the idea.c and related files in and you should be able to rebuild libmcrypt (and mcrypt if you use it). You can also use the GPG version, or build a separate library yourself, but neither is as simple.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文