RSA 2048, Blowfish, Rijndael, Whirlpool PureLib

Developed or developing a new product in PureBasic? Tell the world about it.
JCV
Enthusiast
Enthusiast
Posts: 580
Joined: Fri Jun 30, 2006 4:30 pm
Location: Philippines

Re: RSA 2048, Blowfish, Rijndael, Whirlpool PureLib

Post by JCV »

It seems all the links are dead now. Even the PureCrypt rapidshare link is dead also.
Sorry I can't help right now, I don't have a backup in my laptop.
I can't access my home pc either. Maybe someone here who has downloaded the files before can upload?

[Registered PB User since 2006]
[PureBasic 6.20][SpiderBasic 2.2]
[RP4 x64][Win 11 x64][Ubuntu x64]
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Re: RSA 2048, Blowfish, Rijndael, Whirlpool PureLib

Post by SFSxOI »

Will this help? All four .rar files from the original post in this thread in one .zip

Download link: http://rapidshare.com/files/318230693/e ... b.zip.html

can be downloaded 10 times so if someone can move them to a more perm location it would be great.
The advantage of a 64 bit operating system over a 32 bit operating system comes down to only being twice the headache.
Mohawk70
Enthusiast
Enthusiast
Posts: 404
Joined: Thu May 11, 2006 1:04 am
Location: Florida, USA

Re: RSA 2048, Blowfish, Rijndael, Whirlpool PureLib

Post by Mohawk70 »

SFSxOI wrote:Will this help? All four .rar files from the original post in this thread in one .zip

if someone can move them to a more perm location it would be great.
I'll put them up in a permanent location in a day or two :D !
HP Z800 Workstation
CPU : Dual Xeon 5690 3.46GHz
RAM : 96GB RAM ( 8GB x 12 )
PSU : 1100W
GPU : NVIDIA RTX 3050 8GB
STORAGE : 9TB
(4) 2TB Seagate IronWolf Pro HDD
(1) 1TB Samsung 870 EVO SSD
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Re: RSA 2048, Blowfish, Rijndael, Whirlpool PureLib

Post by Karbon »

If someone will send them to me I'll give them a permanent home too
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Mohawk70
Enthusiast
Enthusiast
Posts: 404
Joined: Thu May 11, 2006 1:04 am
Location: Florida, USA

Re: RSA 2048, Blowfish, Rijndael, Whirlpool PureLib

Post by Mohawk70 »

Mohawk70 wrote:
SFSxOI wrote:Will this help? All four .rar files from the original post in this thread in one .zip

if someone can move them to a more perm location it would be great.
I'll put them up in a permanent location in a day or two :D !
Sorry it took so long ! I've set up the PureDump forum http://puredump.proboards.com

Files from this thread can be found here ==> http://puredump.proboards.com/index.cgi ... y&thread=2

Note : you must join the forum to be able to download. Sorry, that is ProBoards rule not mine !
Last edited by Mohawk70 on Thu Dec 17, 2009 3:25 am, edited 1 time in total.
HP Z800 Workstation
CPU : Dual Xeon 5690 3.46GHz
RAM : 96GB RAM ( 8GB x 12 )
PSU : 1100W
GPU : NVIDIA RTX 3050 8GB
STORAGE : 9TB
(4) 2TB Seagate IronWolf Pro HDD
(1) 1TB Samsung 870 EVO SSD
Mohawk70
Enthusiast
Enthusiast
Posts: 404
Joined: Thu May 11, 2006 1:04 am
Location: Florida, USA

Re: RSA 2048, Blowfish, Rijndael, Whirlpool PureLib

Post by Mohawk70 »

I forgot to mention - I have it set so registered users can attach files to their posts.
If anyone wants to be a moderator at the PureDump forums, PM me !

<Edit>

I just did some organization at the Pure Dump Forum and posted rules. Feel free to make suggestions.
Can a Moderator make an announcement or sticky the posts in this thread about the new board ?
Thanks !
HP Z800 Workstation
CPU : Dual Xeon 5690 3.46GHz
RAM : 96GB RAM ( 8GB x 12 )
PSU : 1100W
GPU : NVIDIA RTX 3050 8GB
STORAGE : 9TB
(4) 2TB Seagate IronWolf Pro HDD
(1) 1TB Samsung 870 EVO SSD
nanoiton
New User
New User
Posts: 1
Joined: Thu Jan 28, 2010 9:46 am

Re: RSA 2048, Blowfish, Rijndael, Whirlpool PureLib

Post by nanoiton »

hi. is there a way to import a key or a certificate from the contents of a text box to be used for JCV's encryption routine? JCV's example retrieves the key and the certificate from the buffer after generation. the load button in his example does not work. i hope JCV or other smart guys here can complete his RSA example to include function for importing keys and certificates from files or strings.

thanks a bunch in advance. :wink:
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Re: RSA 2048, Blowfish, Rijndael, Whirlpool PureLib

Post by Num3 »

Hey mates,
Anyone has the source code for the RSA 2048 !?
I've been poking around this library, but i get invalid memory errors, and without the source i can't really tell if is the library or me.

Btw, here's the code i've tried:

Code: Select all

EnableExplicit

Define file.s, key.s, dados.s, sourceLength.l, targetLength.l, result.l

#BITS = 1024

; Structure RSA
;   KeyLength.l
;   KeyBytes.c[#BITS]
;   CertificateLength.l
;   CertificateBytes.c[#BITS]
; EndStructure
; 
; Global KEYS.RSA

file.s=OpenFileRequester("Chave Privada","","*.txt",1) ; Load a saved Private Key
If file
  key.s=""
  If ReadFile(0, file)
    While Eof(0) = 0           ; loop as long the 'end of file' isn't reached
      key + ReadString(0)      ; readkey
    Wend
  EndIf
  
  Dim PrivateKey.c (Len(key)) ; Make room for private key
  PokeS(@PrivateKey(),key) ; Copy string into memory
  
  dados.s="2008-03-10;2008-03-10T15:58:00;FT 1/1;28.07;" ; A test example
  
  sourceLength = Len(dados)
  targetLength = sourceLength * 2 ; Reserve enough space
  
  If (targetLength < 256)
    targetLength = 256 ; set minimum of one block Size
  EndIf
  
  Dim SourceBytes.c(sourceLength)
  PokeS(@SourceBytes(),dados)
  
  Dim SignedString.c(targetLength-1)
    
  Result = RSA_sign(@SourceBytes(), sourceLength, @SignedString(), targetLength, @PrivateKey(), Len(key))
  
  Debug PeekS(@SignedString(), Result)
    
EndIf
Crashes when i try to sign the string ...
User avatar
RocketRider
User
User
Posts: 87
Joined: Tue Aug 19, 2008 11:01 am

Re: RSA 2048, Blowfish, Rijndael, Whirlpool PureLib

Post by RocketRider »

I don't have the sourcecode of this lib, but if you don't have anything against WinAPI you can use it for RSA encryption.
I wrote a simple code a few weeks ago:
http://www.purebasic.fr/english/viewtop ... 13&t=49051

regards,
RocketRider
Post Reply