Sponsored Content
Full Discussion: AES encryption
Top Forums Programming AES encryption Post 302296152 by Neo on Tuesday 10th of March 2009 01:34:16 PM
Old 03-10-2009
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

encryption is possible??

NEED expertise help for this topic!!! Question 1: Is encryption possible for the shell scriping programing? shadow the scriping file, do think is impossible... Question2: built a simple program with the simplicity function that allow user change settings by enter corret name and... (3 Replies)
Discussion started by: trynew
3 Replies

2. UNIX for Advanced & Expert Users

encrypting file system using AES 256 bit

Experts, I am trying to encrypt my filesystem using the AES 256 bit type of encryption. I am using FreeBSD 5.4 and need to encrypt one of the mounted points. Does anybody have any good idea of how to do it? Is there any documentation about encrypting the disk partition as this method is more... (2 Replies)
Discussion started by: jimmynath
2 Replies

3. UNIX for Dummies Questions & Answers

File encryption/Key encryption ????

My dilemma, I need to send, deemed confidential, information via e-mail (SMTP). This information is sitting as a file on AIX. Typically I can send this data as a e-mail attachment via what we term a "mail filter" using telnet. I now would like to somehow encrypt the data and send it to a e-mail... (1 Reply)
Discussion started by: hugow
1 Replies

4. Programming

JAVA AES keylength exception

I am developing a JAVA application that must encrypt its data. On my development machine, I can use a 256 bit key with no problem. A test machine throws an exception complaining about an illegal key length. The test machine is using JRE 1.6u21. Does anyone know where I can get a version of the JRE... (1 Reply)
Discussion started by: ilikecows
1 Replies

5. Programming

3DES encryption

Hello everyone, can any one help me to find out the 3des(triple data encryption standard) algorithm implementation in C.. Thanks in advance (4 Replies)
Discussion started by: andrew.paul
4 Replies

6. Cybersecurity

File encryption tools with MAC address as an encryption key

Hi all, I'm looking for secure file encryption tools that use MAC address as encryption key. FYI, I'm using Red Hat Enterprise Linux OS. For example: when A wants to send file to B A will encrypt the file with B's computer MAC/IP address as an encryption key This file can only be decrypted... (2 Replies)
Discussion started by: sergionicosta
2 Replies

7. Cybersecurity

Is ccrypt AES 256 bit crypto secure enough?

Toucan software uses 256bit AES encryption using ccrypt (https://en.wikipedia.org/wiki/Ccrypt) i want to ask if its secure to use this ccrypt encryption for storing .TXT file with my passwords on cloud storage like Google Drive? (7 Replies)
Discussion started by: postcd
7 Replies

8. Programming

Publish and Subscribe to AES-256 Encrypted MQTT Messages to Node-RED from PHP Scripts

Various Node-Red crypto modules do not work with PHP, so to send an encrypted message from a PHP script (in this case from a Ubuntu server) to Node-RED we need our own code. After a few hours of searching, testing various libs, more testing and debugging, I got this PHP to Node-RED code... (0 Replies)
Discussion started by: Neo
0 Replies
LIBTOMCRYPT(3)						     Library Functions Manual						    LIBTOMCRYPT(3)

NAME
libtomcrypt - public domain open source crypthographic toolkit SYNOPSIS
#include <tomcrypt.h> Link with -ltomcrypt (use pkg-config --libs libtomcrypt) DESCRIPTION
libtomcrypt is documented in /usr/share/doc/libtomcrypt-dev/crypt.pdf. To give you a very brief introduction, the following example is pro- vided. EXAMPLE
/* AES-XTS example for libtomcrypt. (c) 2008 Michael Stapelberg, Public Domain */ #include <stdint.h> #include <string.h> #include <tomcrypt.h> static symmetric_xts xts; /* * Initializes AES-XTS for use with encrypt(). Key must be at least 32 bytes long, only * the first 32 bytes will be used. * */ void initialize_xts(unsigned char *key) { int idx, err; unsigned char aeskey1[16], aeskey2[16]; /* You can use 32 different ciphers simultaneously. Before using a cipher, you must register it. */ register_cipher(&aes_desc); /* Get the index of the cipher registered before */ if ((idx = find_cipher("aes")) == -1) { fprintf(stderr, "ERROR: AES not available in libtomcrypt. Please upgrade/fix libtomcrypt. "); exit(EXIT_FAILURE); } /* Set up the two private keys required by AES-XTS (see 3.4.10 of crypt.pdf) */ strncpy((char*)aeskey1, key, 16); strncpy((char*)aeskey2, key+16, 16); printf("Initializing with keys "%.16s" and "%.16s" (AES-XTS) ", aeskey1, aeskey2); /* Initialize AES-XTS */ if ((err = xts_start(idx, aeskey1, aeskey2, 16, 0, &xts)) != CRYPT_OK) { fprintf(stderr, "ERROR starting XTS: %s ", error_to_string(err)); exit(EXIT_FAILURE); } } /* * Encrypts the input (of input_size) and stores the result in output. The piece index * is required because XTS wants a tweak for each block so that it doesn't generate * patterns which would be visible in the encrypted output. * */ void encrypt(const uint8_t *input, uint8_t *output, int input_size, int piece_idx) { unsigned char tweak[256]; int err; memset(tweak, '', 256); snprintf((char*)tweak, 256, "%d", piece_idx); if ((err = xts_encrypt(input, input_size, output, tweak, &xts)) != CRYPT_OK) { fprintf(stderr, "ERROR in AES encryption: %d: %s ", err, error_to_string(err)); exit(EXIT_FAILURE); } } SEE ALSO
pkg-config(1) AUTHOR
libtomcrypt was written by Tom St Denis. This manual page was written by Michael Stapelberg <michael@stapelberg.de>, for the Debian project (and may be used by others). June 2009 LIBTOMCRYPT(3)
All times are GMT -4. The time now is 07:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy