Encryption for C++, Visual Basic, php using PC1

Cryptography topics
Post Reply
User avatar
Saman
Lieutenant Colonel
Lieutenant Colonel
Posts: 828
Joined: Fri Jul 31, 2009 10:32 pm
Location: Mount Lavinia

Encryption for C++, Visual Basic, php using PC1

Post by Saman » Wed Jul 14, 2010 6:27 am

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 ).
pc1-128.zip
(19.64 KiB) Downloaded 957 times
The C file for PC1 encryption algorithm in C language (128-bit keys) ( input = BINARY FILE, output = BINARY FILE ).
cryptfile.zip
(1.77 KiB) Downloaded 810 times
The ZIP archive for PC1 encryption algorithm in C language (256-bit keys) ( input = BINARY FILE, output = BINARY FILE ).
pc1-256.zip
(20.94 KiB) Downloaded 785 times
The ZIP archive for PC1 encryption algorithm in C language (256-bit keys) ( input = BINARY FILE, output = TEXT ).
pc1-256-txt.zip
(21.31 KiB) Downloaded 759 times
The ZIP archive for PC1 encryption algorithm in Borland C++ language (256-bit keys) graphical interface ( input = TEXT, output = TEXT ).
pc1-256-c++.zip
(241.18 KiB) Downloaded 869 times
The ZIP archive for PC1 encryption algorithm in C++ language (128-bit keys) command line interface ( input = TEXT, output = TEXT ).
pk128.zip
(1.36 KiB) Downloaded 855 times
The ZIP archive for PC1 encryption algorithm in CBuilder 5 language (256-bit keys) ( input = TEXT, output = TEXT ).
pc1-256-cbuilder5.zip
(1.77 KiB) Downloaded 726 times
How to encrypt passwords in C language
passwd.zip
(23.13 KiB) Downloaded 749 times
Frequently asked questions
faq.zip
(6.63 KiB) Downloaded 788 times


The ZIP archive for PC1 encryption algorithm in JAVA language (128-bit keys) by Robert Neild ( input = BINARY FILE, output = BINARY FILE ).
pc1-128-java.zip
(8.97 KiB) Downloaded 732 times
The ZIP archive for PC1 encryption algorithm in TCL language (256-bit keys) ( input = TEXT, output = TEXT ).
pc1.zip
(1.92 KiB) Downloaded 744 times
The ZIP archive for PC1 encryption algorithm in PHP language (128-bit keys) ( input = TEXT, output = TEXT ).
pc1php.zip
(1.51 KiB) Downloaded 1176 times
The PY file for PC1 encryption algorithm in Python language (128-bit keys) by Huey Jiang ( input = TEXT, output = TEXT ).
pc1char.zip
(1.4 KiB) Downloaded 701 times
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 ).
pc1-delphi-128.zip
(111.15 KiB) Downloaded 722 times
The ZIP archive for PC1 encryption algorithm in Perl language (128-bit keys) ( input = BINARY FILE, output = TEXT or input = TEXT, output = TEXT ).
pc1-perl-128.zip
(3.24 KiB) Downloaded 717 times
The ZIP archive for PC1 encryption algorithm in Visual Basic 6.0 (128-bit keys) ( input = TEXT, output = TEXT ).
pc1-vb6-128.zip
(6.77 KiB) Downloaded 1476 times
The ZIP archive for PC1 encryption algorithm in Visual Basic 6.0 (128-bit keys) ( input = BINARY, output = BINARY ).
pc1-vb6-128-binary.zip
(8.16 KiB) Downloaded 981 times
The ZIP archive for PC1 crypt algorithm in VB 6.0 ACTIVE X control (128-bit keys) by Dan "Wraith" Hetrick
pc1-active-x.zip
(26.38 KiB) Downloaded 854 times



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)
pc1-pics-128.zip
(17.52 KiB) Downloaded 729 times
The ZIP archive for PC1 crypt algorithm for 6809 processor (80-bit keys)
pc1-6809.zip
(5.59 KiB) Downloaded 672 times
The ZIP archive for PC1 crypt algorithm for Texas Instrument TI-89 TI-90 TI-9x (80-bit keys)
pc1ti80.zip
(71.78 KiB) Downloaded 683 times
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/
User avatar
SevenZero
Major
Major
Posts: 263
Joined: Sun Nov 01, 2009 8:37 pm

Re: Encryption for C++, Visual Basic, php using PC1

Post by SevenZero » Tue Jul 05, 2011 7:23 pm

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 ;)
User avatar
studeter
Posts: 1
Joined: Sun Jan 04, 2015 8:41 am

Re: Encryption for C++, Visual Basic, php using PC1

Post by studeter » Sun Jan 04, 2015 8:52 am

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.
User avatar
arjaycruz100
Posts: 1
Joined: Wed Apr 08, 2015 10:39 am
Location: usa

Re: Encryption for C++, Visual Basic, php using PC1

Post by arjaycruz100 » Wed Apr 08, 2015 11:24 am

Oh thank you Saman your heaven sent!
User avatar
rodney
Posts: 1
Joined: Sun Jun 05, 2016 7:38 pm

Re: Encryption for C++, Visual Basic, php using PC1

Post by rodney » Sun Jun 05, 2016 7:56 pm

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
Post Reply

Return to “Cryptography”