This is a very useful encryption algorithm for general use. Extremely easy to use.
The PC1 Encryption Algorithm
Very High Security with 128 or 256-bit keys
Alexander Pukall 2004
[email protected]
Code free for all, even commercial applications.
Crypto Source code for C, C++, Delphi, Java, Perl, Visual Basic, TCL, PIC Microchip processor, Texas Instrument TI-89 TI-90 TI-9x, 6809 microprocessor Assembler.
The ZIP archive for PC1 encryption algorithm in C language (128-bit keys) ( input = BINARY FILE, output = BINARY FILE ).
The C file for PC1 encryption algorithm in C language (128-bit keys) ( input = BINARY FILE, output = BINARY FILE ).
The ZIP archive for PC1 encryption algorithm in C language (256-bit keys) ( input = BINARY FILE, output = BINARY FILE ).
The ZIP archive for PC1 encryption algorithm in C language (256-bit keys) ( input = BINARY FILE, output = TEXT ).
The ZIP archive for PC1 encryption algorithm in Borland C++ language (256-bit keys) graphical interface ( input = TEXT, output = TEXT ).
The ZIP archive for PC1 encryption algorithm in C++ language (128-bit keys) command line interface ( input = TEXT, output = TEXT ).
The ZIP archive for PC1 encryption algorithm in CBuilder 5 language (256-bit keys) ( input = TEXT, output = TEXT ).
How to encrypt passwords in C language
Frequently asked questions
The ZIP archive for PC1 encryption algorithm in JAVA language (128-bit keys) by Robert Neild ( input = BINARY FILE, output = BINARY FILE ).
The ZIP archive for PC1 encryption algorithm in TCL language (256-bit keys) ( input = TEXT, output = TEXT ).
The ZIP archive for PC1 encryption algorithm in PHP language (128-bit keys) ( input = TEXT, output = TEXT ).
The PY file for PC1 encryption algorithm in Python language (128-bit keys) by Huey Jiang ( input = TEXT, output = TEXT ).
The ZIP archive for PC1 encryption algorithm in Delphi language (128-bit keys) translated from C to Pascal by Peter Torris ( input =TEXT, output = TEXT ).
The ZIP archive for PC1 encryption algorithm in Perl language (128-bit keys) ( input = BINARY FILE, output = TEXT or input = TEXT, output = TEXT ).
The ZIP archive for PC1 encryption algorithm in Visual Basic 6.0 (128-bit keys) ( input = TEXT, output = TEXT ).
The ZIP archive for PC1 encryption algorithm in Visual Basic 6.0 (128-bit keys) ( input = BINARY, output = BINARY ).
The ZIP archive for PC1 crypt algorithm in VB 6.0 ACTIVE X control (128-bit keys) by Dan "Wraith" Hetrick
The ZIP archive PC1 for Microchip PIC Microcontroller 16F627, 16F627A, 16F628, 16F628A, 16F648A, 16F72, 16F73, 16F74, 16F76, 16F77, 16F818, 16F819, 16F87, 16F870, 16F871, 16F872, 16F873, 16F873A, 16F874, 16F874A, 16F876, 16F876A, 16F877, 16F877A, 16F88 (128-bit keys)
The ZIP archive for PC1 crypt algorithm for 6809 processor (80-bit keys)
The ZIP archive for PC1 crypt algorithm for Texas Instrument TI-89 TI-90 TI-9x (80-bit keys)
The PC1 cipher uses a 128 or 256-bit key.
It's a stream cipher with a retroaction function.
Tested with Turbo C 2.0 for DOS
and Microsoft Visual C++ 5.0 for Win 32
Delphi 2.0
Perl 5.0
Visual Basic 4.0 32 bits mode
Microchip PIC
Courtesy of http://membres.multimania.fr/pc1/
Encryption for C++, Visual Basic, php using PC1
Re: Encryption for C++, Visual Basic, php using PC1
I used this with php/VB6 and it works great.
Thanks a lot for both Author and Saman for producing this great piece of code
Thanks a lot for both Author and Saman for producing this great piece of code
Re: Encryption for C++, Visual Basic, php using PC1
Hello, I'm just starting in PHP, so sadly I don't have idea what to do next. I've tried all, including of course:
<?php
include 'pc1.php';
$in = 'Encryptme';
$key = 'password';
$StringOut = encrypt($in, $key);
echo '$StringOut';
?>
This code inserted in a file named tst6.php. This file executed in my website: ../tst6.php,
but nothing happens. What can I do to solve this? Please help me, I need a solution to one little project of mine related with php/VB6, yes, VB6.
Thank you in advance for your kind help.
Stu.
<?php
include 'pc1.php';
$in = 'Encryptme';
$key = 'password';
$StringOut = encrypt($in, $key);
echo '$StringOut';
?>
This code inserted in a file named tst6.php. This file executed in my website: ../tst6.php,
but nothing happens. What can I do to solve this? Please help me, I need a solution to one little project of mine related with php/VB6, yes, VB6.
Thank you in advance for your kind help.
Stu.
- arjaycruz100
- Posts: 1
- Joined: Wed Apr 08, 2015 10:39 am
- Location: usa
Re: Encryption for C++, Visual Basic, php using PC1
Oh thank you Saman your heaven sent!
Re: Encryption for C++, Visual Basic, php using PC1
Hello and thanks very much for the excellent PC1 encryption codes. Also I found the FAQ article written to be the best i have read on software security using PC1. And the one thing that i am now extremely interested in is you mention that you can encrypt functions in a DLL for making say a trial version which is what i want to do, as I am a complete novice in vb6 programming. So could yourself or some-one else explain how you can encrypt a function in a dll and when this function is run it decrypts and works as normal if the key matches etc. Thanks in advance and thanks again for all the info on security.. rod