[YMCS/YDMP Free Trial Program]Yealink would like to offer Free Trial Program of Yealink device management service for our current eligible customers. You can see the details below.
https://www.yealink.com/ydmp-freetrial-2020


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AES Encryption
Author Message
bOOster Offline
Junior Member
**

Posts: 4
Joined: Sep 2013
Reputation: 0
Post: #11
RE: AES Encryption
Ok now.
This is a AES Encryption tool for Unix/Linux systems.

If it useful for you, please support open source, [Image: btn_donate_SM.gif]


Attached File(s)
.gz  aessimple.tar.gz (Size: 4.72 KB / Downloads: 29)
(This post was last modified: 09-20-2013 11:26 PM by bOOster.)
09-18-2013 04:54 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
bOOster Offline
Junior Member
**

Posts: 4
Joined: Sep 2013
Reputation: 0
Post: #12
RE: AES Encryption
Additional information - because of some bug in firmware, first of all put something like 11111 or something else to the Common/Mac file AES Encryption key field and make apply. Then put a real key in this fields.
09-20-2013 11:45 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
damo@launtel.net.au Offline
Damian Ivereigh
**

Posts: 6
Joined: Jan 2015
Reputation: 0
Post: #13
RE: AES Encryption
Here is the same algorithm written in perl. Key supplied as argument (must be 16 characters) and config file fed into stdin, encrypted file is printed to stdout.

Code:
#!/usr/bin/perl -w
use Crypt::Mode::ECB;

my $key = $ARGV[0]; # length has to be 16 characters
my $plaintext = do { local $/; <STDIN> };
# Pad to a multiple of 16 (128 bits) with spaces
my $pad=(16-(length($plaintext) % 16)) % 16;
for (my $n=0; $n<$pad; $n++) {
        $plaintext .= ' ';
}
my $c = Crypt::Mode::ECB->new('AES', 0);
print($c->encrypt($plaintext, $key));
04-05-2015 07:27 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  AES Encryption from Python jvanveen 1 9,762 02-04-2015 04:17 PM
Last Post: jvanveen

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us   Yealink   Return to Top   Return to Content   Lite (Archive) Mode   RSS Syndication