This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| textline1 | |
| textline2 | |
| textline3 | |
| text4 | |
| lastlinetext5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Idea | |
| require 'crypt/cbc' | |
| include Crypt::CBC | |
| require 'digest/md5' | |
| ULONG = 0x100000000 | |
| USHORT = 0x10000 | |
| encrypt = 0 | |
| decrypt = 1 | |
| def block_size | |
| return(8) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # idea.rb Richard Kernahan <kernighan_rich@rubyforge.org> | |
| # IDEA (International Data Encryption Algorithm) by | |
| # Xuejia Lai and James Massey (1992). Refer to license info at end. | |
| # Ported by Richard Kernahan 2005 | |
| module Crypt | |
| class IDEA | |
| require 'crypt/cbc' |