Zip Component, Email Component, Encryption Component ActiveX Control for Zip Compression .NET Components for ASP.NET
ActiveX and .NET Components for Zip Compression, Encryption, Email, XML, S/MIME, HTML Email, Character Encoding, Digital Certificates, FTP, and more ASP Email ActiveX Component

  

  

  Chilkat ActiveX Components

  Chilkat .NET Components

  Chilkat C++ Libraries

  

  

  

  

 

FAQ

Verify AES ECB Encryption against NIST Test Vectors
(Known Answer Tests)   Back to Online Tools

This page should be viewed in Internet Explorer. It uses the Chilkat Crypt2 ActiveX component, which is a digitally signed and safe-for-scripting client-side component.

Hex Key:

Hex Plain Text:

Hex Cipher Text:

128-bit AES/ECB/PKCS5Padding

<script type="text/javascript" language="javascript">

function aesEncrypt()
{
	document.crypt2.UnlockComponent("Anything goes here.");
	
	// Crypt algorithms include "aes", "blowfish2", "twofish", "pki"
	document.crypt2.CryptAlgorithm = "aes";
	document.crypt2.CipherMode = "ecb";
	
	// Output encoding possibilities include "base64", "hex", "qp", or "url"
	document.crypt2.EncodingMode = "hex";
	
	// PKCS5 Padding
	document.crypt2.PaddingScheme = 3;
		
	// Key length can be 128, 192, or 256
	document.crypt2.KeyLength = 128;
	
	document.crypt2.SetEncodedKey(document.form1.hexKey.value,"hex");
	
	var inData = document.crypt2.Decode(document.form1.etx.value,"hex");
	
	document.form1.ctx.value = 
			document.crypt2.EncryptBytesENC(inData);
}

</script>

The NIST test values can be downloaded here: NIST test values.

A few of the NIST ECB Known Answer Tests data is reproduced here:
PT = plain-text
CT = cipher-text
KEY = 128-bit secret key.

VARIABLE KEY TESTS:
KEYSIZE=128

PT=00000000000000000000000000000000

I=1
KEY=80000000000000000000000000000000
CT=0EDD33D3C621E546455BD8BA1418BEC8

I=2
KEY=40000000000000000000000000000000
CT=C0CC0C5DA5BD63ACD44A80774FAD5222

I=3
KEY=20000000000000000000000000000000
CT=2F0B4B71BC77851B9CA56D42EB8FF080

I=4
KEY=10000000000000000000000000000000
CT=6B1E2FFFE8A114009D8FE22F6DB5F876

I=5
KEY=08000000000000000000000000000000
CT=9AA042C315F94CBB97B62202F83358F5

I=6
KEY=04000000000000000000000000000000
CT=DBE01DE67E346A800C4C4B4880311DE4

I=7
KEY=02000000000000000000000000000000
CT=C117D2238D53836ACD92DDCDB85D6A21

I=8
KEY=01000000000000000000000000000000
CT=DC0ED85DF9611ABB7249CDD168C5467E

I=9
KEY=00800000000000000000000000000000
CT=807D678FFF1F56FA92DE3381904842F2

VARIABLE TEXT TESTS:

KEYSIZE=128

KEY=00000000000000000000000000000000

I=1
PT=80000000000000000000000000000000
CT=3AD78E726C1EC02B7EBFE92B23D9EC34

I=2
PT=40000000000000000000000000000000
CT=45BC707D29E8204D88DFBA2F0B0CAD9B

I=3
PT=20000000000000000000000000000000
CT=161556838018F52805CDBD6202002E3F

I=4
PT=10000000000000000000000000000000
CT=F5569B3AB6A6D11EFDE1BF0A64C6854A

I=5
PT=08000000000000000000000000000000
CT=64E82B50E501FBD7DD4116921159B83E

I=6
PT=04000000000000000000000000000000
CT=BAAC12FB613A7DE11450375C74034041

I=7
PT=02000000000000000000000000000000
CT=BCF176A7EAAD8085EBACEA362462A281

I=8
PT=01000000000000000000000000000000
CT=47711816E91D6FF059BBBF2BF58E0FD3

I=9
PT=00800000000000000000000000000000
CT=B970DFBE40698AF1638FE38BD3DF3B2F

More information about Chilkat ActiveX in Javascript

Crypt2 ActiveX Reference

Embedding ActiveX in HTML Reference

More Online Tools


Privacy Statement. Copyright 2000-2010 Chilkat Software, Inc. All rights reserved.
Send feedback to support@chilkatsoft.com

Components for Microsoft Windows 7, Vista, XP, 2000, 2003 Server, and Windows 95/98/NT4.