Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: kazikamuntu
1,684
Posted By kazikamuntu
THANKS ! best regards
THANKS !
best regards
1,684
Posted By kazikamuntu
Python String <--> Number
My question is so simple:

A = raw_input("A ")

if A[0:2] == '56':
VAR = (A + 54)/13
else:
print "other operations"


if I write in input 5656565656
i want to make some arithmetic...
5,901
Posted By kazikamuntu
ok thanks the command in python is simple: I...
ok thanks
the command in python is simple:
I explain in a better way:

A='\x00\x11\x22\x33\xA8\x44\x55\x66\x92\x77\x88\xAC\x99\x94\x88\x11'
B='\x0c\xef\x83\x44\x34\x00\x00\xca'

print...
5,901
Posted By kazikamuntu
thanks but the result is the same...
thanks but the result is the same...
5,901
Posted By kazikamuntu
openssl DES3 in scripting
hi,
I have this script in python

#!/usr/bin/env python
from Crypto.Cipher import DES3

def desEncrypt(key, data):
d = des4me(key)
return d.encrypt(data)

def des4me(key):
...
1,143
Posted By kazikamuntu
cat unix|tr [X]|sed /XXXXXX/d
cat unix|tr
[X]|sed /XXXXXX/d
1,082
Posted By kazikamuntu
i don't understand your answer. I can't find this...
i don't understand your answer. I can't find this operator in a guide.

---------- Post updated at 06:01 AM ---------- Previous update was at 05:59 AM ----------

ok is a SHIFT operator!!
1,082
Posted By kazikamuntu
a tip in python commands >> and <<
q = ((i + 2) * 6) >> 3
what's the meaning in python?
Forum: Linux 04-09-2010
2,340
Posted By kazikamuntu
Thanks but not the same result:( For example ...
Thanks but not the same result:(
For example
echo -n "0011223344556677889910111213141516171819"|md5sum| cut -f1 -d ' ' | tr '[a-z]' '[A-Z]' | bc
19498340999655919679390993985391

and the pyton...
Forum: Linux 04-07-2010
2,340
Posted By kazikamuntu
using md5 initwith shell?
Hi guys,
Hi have a little problem with md5 digest.I want to translate in bash language this function in python:

digest = int(md5(value).hexdigest(),16)

(it's an md5 update)

how i...
2,484
Posted By kazikamuntu
Thanks for the reply! ok but this command...
Thanks for the reply!
ok but this command encode the value CCD017950... as a text string with a text pass. Or not?

I want the encode in exadecimal.

Any solution?
2,484
Posted By kazikamuntu
OPENSSL CRYPT-DECRYPT IN esadecimal
echo -n "CCD017950F0959D5"|openssl des -d -nosalt -nopad -pass pass:abcccc31dd92ef6b|xxd -p

I have a hexadecimal value of 8 byte (16 hexadecimal values) and I want crypt with a DES KEY of 16...
1,138
Posted By kazikamuntu
Thanks! and if I want the des works in...
Thanks!
and if I want the des works in hexadecimal?
1,138
Posted By kazikamuntu
Question about a simple Korn script
Hi to everybody!
I want to write a simple script in ksh that decrypts and encrypts using the DES algorithm.
There is no builtin function in UNIX : i have found only a function in openssl but i...
Showing results 1 to 14 of 14

 

Featured Tech Videos

All times are GMT -4. The time now is 07:24 AM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy