Sponsored Content
Top Forums UNIX for Advanced & Expert Users How to decrypt a file in UNIX? Post 302846075 by hergp on Friday 23rd of August 2013 02:41:23 AM
Old 08-23-2013
As I said, openssl is a little picky, every encoded line (except the last one) has to be 64 characters long.

Code:
Q2xhaW1OdW1iZXIsQ2xhaW1EZWFsVHlwZSxSZWplY3Rpb25SZWFzb24sRGVhbE51
bWJlcixTYWxlc09yZGVyTnVtYmVyLEhQU2FsZXNPcmRlck51bWJlcixJbnZvaWNl
RGF0ZSxJbnZvaWNlTnVtYmVyLFNLVSxRdWFudGl0eSxTZXJpYWxOdW1iZXIsQmls
bFRvTmFtZSxFVXNlck5hbWUsQmlsbFRvQWRkcmVzczEsQmlsbFRvQWRkcmVzczIs
QmlsbFRvQ2l0eSxCaWxsVG9TdGF0ZSxCaWxsVG9aaXBDb2RlLFNoaXBUb05hbWUs
U2hpcFRvQWRkcmVzczEsU2hpcFRvQWRkcmVzczIsU2hpcFRvQ2l0eSxTaGlwVG9T
dGF0ZSxTaGlwVG9aaXBDb2RlLEVuZFVzZXJOYW1lLEVuZFVzZXJBZGRyZXNzMSxF
bmRVc2VyQWRkcmVzczIsRW5kVXNlckNpdHksRW5kVXNlclN0YXRlLEVuZFVzZXJa
aXBDb2RlLEJhdGNoTnVtYmVyLENvbXBhbnlMb2NhdGlvbklELERpc3RyaWJ1dG9y
TmFtZQ0KIkMxMjQ1MzIiLCJWb2x1bWUgSFBOIFN3aXRjaGluZyBSb3V0aW5nIEFw
cGxpY2F0aW9ucyBBY2Nlc3NvcmllcyBOQk8iLCIiLCJENzIxNzU4IiwiIiwiIiwi
OC8xLzIwMTMgMTI6MDA6MDAgQU0iLCI0MDI1NjE0MTEiLCJKOTcyN0EjQUJBIiwi
MiIsIiIsIkNBTUVSQSBDT1JORVIgQ09OTkVDVElORyBQT0lOVCIsIkJBREdFUiBT
SEVFVCBNRVRBTCIsIkdFIENPTU1FUkNJQUwgRElTVFJJQlVUSU9OIEZJTiBDT1JQ
IiwiREVBTEV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wMTMgMTI6MDA6MDAgQU0iLCIzMjE3Mzc4MjEiLCJEOEU2NlVUI0FC
QSIsIjExIiwiIiwiTkVUR0FJTiBURUNITk9MT0dJRVMgSU5DIiwiQ0VOVEVSUyBG
T1IgWU9VVEggJiBGQU1JTElFUyIsIlBPIEJPWCAyNTE5NzAiLCIiLCJMSVRUTEUg
Uk9DSyIsIkFSIiwiNzIyMjUxOTcwIiwiQ0VOVEVSUyBGT1IgWU9VVEggJiBGQU1J
TElFUyIsIjY1MDEgVyAxMlRIIFNUIiwiIiwiTElUVExFIFJPQ0siLCJBUiIsIjcy
MjA0MTUxMSIsIkNFTlRFUlMgRk9SIFlPVVRIICYgRkFNSUxJRVMiLCI2NTAxIFcg
MTJUSCBTVCIsIiIsIkxJVFRMRSBST0NLIiwiQVIiLCI3MjIwNDE1MTEiLCIyNDIy
IiwiMTAwMjYyNDIiLCJJbmdyYW0gTWljcm8gLSAxMDAyNjI0MiIsDQ==

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to decrypt a file which is encrypted in UNIX, In Windows NT

Hi, I want to encrypt a file in UNIX(HP-UX) and Transfer to a FTP server. Our FTP server is Windows NT. SO, how can i decrypt the file which is encrypted in UNIX, in Windows NT. Please, help me this is urgent. Siva Gorantla:confused: (3 Replies)
Discussion started by: gorantla
3 Replies

2. Programming

decrypt function in unix?

Hai Friends We have a function called char * crypt(const char *ps, const char* key) to encrypt the password in the unix environment.. Do we have any decrypt function to decrypt it? If not then how can we verify the password through program? Thanks in Advance Collins (1 Reply)
Discussion started by: collins
1 Replies

3. Solaris

Decrypt Des file - then encrypt

Help.. I need to decrypt a file that was encrypted using DES 56 Bit. I have the encryption key and the block size used but no idea what utility to use.. I then need to encrypt the file using pgp and another key I have.. againt I dont know what utility to use. I am running solaris 9 .... ... (0 Replies)
Discussion started by: frustrated1
0 Replies

4. Shell Programming and Scripting

How to encrypt and decrypt a file

How to encrypt and decrypt a file using unix Command? Can any one help me? (2 Replies)
Discussion started by: laknar
2 Replies

5. Shell Programming and Scripting

decrypt the file

Hello all I am getting a encrypted file (.pgp) and a key which i have to use to decrypt that file. I couldn't understand where to put the key on my unix box so that decryption happens. Please reply. (2 Replies)
Discussion started by: vasuarjula
2 Replies

6. Shell Programming and Scripting

Need to decrypt a file in a directory (SHL script)

I need to decrypt a file in a directory, I need to write a shl scrip & cron job How I find the files in the directory: the file is like this: dailypayments_sfs_payment_201011151800.dat -d The decrypt command: gpg -o dailypayments_sfs_payment_201011151800.dat -d 20101115 (the date... (7 Replies)
Discussion started by: rechever
7 Replies

7. UNIX for Dummies Questions & Answers

How to decrypt any file in UNIX?

How to decrypt a file in unix? I dont know the type of decryption nor the type of text data it contains. We extracted the file from sfdc & need to process it in unix. When extracted, we get encrypted data in the file. The file content is- ... (0 Replies)
Discussion started by: saga20
0 Replies

8. UNIX for Dummies Questions & Answers

How to Unmask/Decrypt an XML file?

Hello All, Below is the content of the XML datafile when i do vi the XML file not sure why the content is showing like this, it could be because the data inside the file is masked or something? is there a way i can decrypt or unmask the data in a human readable format? . When i use my Informatica... (20 Replies)
Discussion started by: Ariean
20 Replies

9. Programming

Encrypt and Decrypt file using RIJNDAEL-128

Hi All, Can I use MCRYPT - (RIJNDAEL-128) / CBC mode to encrypt and decrypt a file? I am trying to find some sample C program on internet, which will encrypt and decrypt a file. But was not able to find any thing. Can some help me with the programming. Thanks. (1 Reply)
Discussion started by: Shre
1 Replies

10. UNIX for Beginners Questions & Answers

Encrypt and Decrypt a File with Password

Hello, I have few files on unix which are payroll related and I need them to encrypt with password so others wouldn't see the data. I use ETL tool and would like to know the unix command that does encryption/decryption to use in the ETL. Thank you, Sri (3 Replies)
Discussion started by: eskay
3 Replies
yhsm-decrypt-aead(1)					      General Commands Manual					      yhsm-decrypt-aead(1)

NAME
yhsm-decrypt-aead - Decrypt AEADs (with secrets for YubiKeys) SYNOPSIS
yhsm-decrypt-aead [options] --aes-key KEY file-or-dir [...] DESCRIPTION
Decrypt AEADs generated using a YubiHSM. NOTE that this requires knowledge of the AES key used in the YubiHSM. After a number of YubiKey secrets have been generated using yhsm-generate-keys(1) , this tool can decrypt them and produce a CSV file usable to personalize corresponding YubiKeys. OPTIONS
-v, --verbose Enable verbose operation. --debug Enable debug printout. --format str Select output format (raw or yubikey-csv). --print-filename Prefix any output with the input filename. --key-handle kh Key handle used when generated AEADs, if not stored in the AEAD file (AEAD generated with python-pyhsm 1.0.3 or lower). --aes-key hexstr AES key used to generate the AEADs. EXIT STATUS
0 OK 1 Fail BUGS
Report python-pyhsm/yhsm-decrypt-aead bugs in the issue tracker <https://github.com/Yubico/python-pyhsm/issues/> SEE ALSO
The python-pyhsm home page <https://github.com/Yubico/python-pyhsm/> YubiHSMs and YubiKeys can be obtained from Yubico <http://www.yubico.com/>. python-pyhsm June 2012 yhsm-decrypt-aead(1)
All times are GMT -4. The time now is 01:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy