• Earn real money by being active: Hello Guest, earn real money by simply being active on the forum — post quality content, get reactions, and help the community. Once you reach the minimum credit amount, you’ll be able to withdraw your balance directly. Learn how it works.

Delphi Cifrado Beaufort By AX

Status
Not open for further replies.

Expermicid

Leech
User
Joined
Oct 23, 2011
Messages
285
Reputation
0
Reaction score
255
Points
63
Credits
0
‎13 Years of Service‎
95%
[lenguaje=delphi]Function Beaufort (A : String; B : String) : String;

{'==============================================================='}

{' AX: Cifrado Beaufort '}

{' Uso: Beaufort('Texto', 'clave') '}

{' Dedicado a Corp-51 '}

{'==============================================================='}

Var D : String;

Var E : String;

Var F : LongInt;

Var G : Integer;

Var H : Integer;

Var I : String;

Begin

If Length(A) = 0 Then Exit;

If Length(B) = 0 Then Exit;

D := Trim(StringReplace(UpperCase(A), ' ', '', [rfReplaceAll]));

E := Trim(StringReplace(UpperCase(B), ' ', '', [rfReplaceAll]));

If Length(E) < Length(D) Then Begin

For F := 1 To Length(D) - Length(E) Do E := E + Copy(E, F, 1);

end;

For F := 1 To Length(D) Do Begin

G := Ord(Copy(D, F, 1)[1]);

H := Ord(Copy(E, F, 1)[1]);

If (H - G) = Abs(H - G) Then I := I + Chr((H - G) + 65) Else I := I + Chr(27 - Abs(H - G) + 65);

end;

Beaufort := I;

end;[/lenguaje]

Autor: AX

Fuente: PitbullSecurity

Saludos a todos

 
Last edited by a moderator:
Status
Not open for further replies.
Back
Top