encrypt word
Posted: Mon Jul 23, 2012 8:13 am
how can I encrypt / decrypt my password in a txt file?
thank you
thank you
Questions and answers about the LiveCode platform.
https://forums.livecode.com/
Code: Select all
function pencrypt pText
replace comma with "#&" in pText
put "a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,1,2,3,4,5,6,7,8,9,0, ,1,@,#,$,%,^,&,*<(,),#&" into tPos
put comma & "A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z" after tPos
set the caseSensitive to true
repeat for each line tLine in pText
repeat for each char tChar in tLine
put itemoffset(tChar,tPos) & comma after tMult
end repeat
put cr after tMult
end repeat
return tMult
end pencrypt
function pdecrypt pText
put "a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,1,2,3,4,5,6,7,8,9,0, ,1,@,#,$,%,^,&,*<(,),#&" into tPos
put comma & "A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z" after tPos
set the caseSensitive to true
repeat for each line tLine in pText
repeat for each item tItem in tLine
put item tItem of tPos after tMult
end repeat
put cr after tMult
end repeat
replace "#&" with comma in tMult
return tMult
end pdecrypt