Click here to Skip to main content
15,889,877 members
Home / Discussions / Java
   

Java

 
QuestionHow can I implement Markov's algorithm with variables and markers? Pin
Riccardo Bove4-Oct-15 10:31
Riccardo Bove4-Oct-15 10:31 
Questionjava Pin
Member 120298853-Oct-15 0:39
Member 120298853-Oct-15 0:39 
AnswerRe: java Pin
Richard MacCutchan3-Oct-15 1:22
mveRichard MacCutchan3-Oct-15 1:22 
QuestionJava problem beginner Pin
Member 120276961-Oct-15 23:33
Member 120276961-Oct-15 23:33 
AnswerRe: Java problem beginner Pin
Richard MacCutchan2-Oct-15 0:17
mveRichard MacCutchan2-Oct-15 0:17 
GeneralRe: Java problem beginner Pin
Member 120276962-Oct-15 1:46
Member 120276962-Oct-15 1:46 
GeneralRe: Java problem beginner Pin
Richard MacCutchan2-Oct-15 1:53
mveRichard MacCutchan2-Oct-15 1:53 
QuestionStoring private data in the cloud via hash functions? Pin
Keld Ølykke30-Sep-15 10:30
Keld Ølykke30-Sep-15 10:30 
Hi,

I am playing around with the idea of using hashing algorithms to store private data in the cloud. I recon it should be doable on most client platforms, because of the availability of hashing algorithms.

- Each blob of data will have its own unique salt associated.
- A password + salt is used to create a hash (only salt leaves the client).
- The hash is used to encode the data in a rather simple manner.
- The encoded data + salt + algorithm version is to be stored in the cloud.

The hash can be used to decode the encoded data again.

The algorith implementation is here: ARosettaStoneV1.java[^]

Here is a unit test: RosettaStoneV1Test.java[^]

As an example the unit test can produce:
quebird.brokenclouds.core.unit.stones.v1.RosettaStoneV1Test@37bba400.testEncodeAndDecode(): 
	#0: MD5 + UTF-8 on 'Hello World! Hellø Wørld! 0123456789 §$!#€%&/()=?+´`¨^*'-_.:,;<>'
encode:  --- START --- [algorithm=BC1+MD5]
encode:  salt[length=36] = 49 52 102 50 53 99 102 101 45 48 50 101 56 45 52 50 53 97 45 97 48 52 50 45 100 98 50 98 50 52 100 97 49 51 57 53 
encode:  data[length=71] = 72 101 108 108 111 32 87 111 114 108 100 33 32 72 101 108 108 -61 -72 32 87 -61 -72 114 108 100 33 32 48 49 50 51 52 53 54 55 56 57 32 -62 -89 36 33 35 -30 -126 -84 37 38 47 40 41 61 63 43 -62 -76 96 -62 -88 94 42 39 45 95 46 58 44 59 60 62 
encode: hash[length=16] = 37 5 88 33 -2 -28 58 -32 71 27 119 -120 22 -87 -91 -2 
encode: padding[length=16] = 84 24 -28 -92 25 61 -97 -27 125 -98 71 -57 43 24 -98 100 
encode: output[length=88] = 0 0 0 0 0 0 0 71 -87 79 10 -37 4 109 54 -115 -15 -121 106 109 -71 -60 106 -111 -88 82 -41 -104 -89 85 70 65 -38 127 49 -111 -77 16 -56 -14 -85 -94 81 -104 29 54 -8 88 43 63 35 89 -18 -114 58 90 48 -94 -52 57 35 59 116 74 -45 123 43 75 -5 -128 52 101 -95 52 -118 27 32 57 83 77 72 -1 123 -124 95 -110 51 120 
encode:  ---  END  --- [algorithm=BC1+MD5]
decode:  --- START --- [algorithm=BC1+MD5]
decode:  salt[length=36] = 49 52 102 50 53 99 102 101 45 48 50 101 56 45 52 50 53 97 45 97 48 52 50 45 100 98 50 98 50 52 100 97 49 51 57 53 
decode:  data[length=88] = 0 0 0 0 0 0 0 71 -87 79 10 -37 4 109 54 -115 -15 -121 106 109 -71 -60 106 -111 -88 82 -41 -104 -89 85 70 65 -38 127 49 -111 -77 16 -56 -14 -85 -94 81 -104 29 54 -8 88 43 63 35 89 -18 -114 58 90 48 -94 -52 57 35 59 116 74 -45 123 43 75 -5 -128 52 101 -95 52 -118 27 32 57 83 77 72 -1 123 -124 95 -110 51 120 
decode: hash[length=16] = 37 5 88 33 -2 -28 58 -32 71 27 119 -120 22 -87 -91 -2 
decode: output[length=71] = 72 101 108 108 111 32 87 111 114 108 100 33 32 72 101 108 108 -61 -72 32 87 -61 -72 114 108 100 33 32 48 49 50 51 52 53 54 55 56 57 32 -62 -89 36 33 35 -30 -126 -84 37 38 47 40 41 61 63 43 -62 -76 96 -62 -88 94 42 39 45 95 46 58 44 59 60 62 
decode:  ---  END  --- [algorithm=BC1+MD5]


I am by no means a crypto-guru, so I would appreciate any comments you might have on the idea, the algorithm, etc. References on the subject are also appreciated.


Kind Regards,
Keld Ølykke
QuestionJava Graphics class Pin
Member 1200394822-Sep-15 8:04
Member 1200394822-Sep-15 8:04 
AnswerRe: Java Graphics class Pin
Richard MacCutchan22-Sep-15 21:11
mveRichard MacCutchan22-Sep-15 21:11 
AnswerRe: Java Graphics class Pin
Anji Reddy26-Sep-15 6:20
Anji Reddy26-Sep-15 6:20 
QuestionUninstalling the Sun java application server problems Pin
Stephen Holdorf22-Sep-15 2:01
Stephen Holdorf22-Sep-15 2:01 
AnswerRe: Uninstalling the Sun java application server problems Pin
Richard MacCutchan22-Sep-15 21:09
mveRichard MacCutchan22-Sep-15 21:09 
QuestionWhile upgrading the axis2, i got the following java.lang.RuntimeException: Undefined 'Security policy namespace cannot be null.' resource property Pin
RohitSonawat17-Sep-15 1:26
RohitSonawat17-Sep-15 1:26 
SuggestionRe: While upgrading the axis2, i got the following java.lang.RuntimeException: Undefined 'Security policy namespace cannot be null.' resource property Pin
Richard MacCutchan17-Sep-15 1:54
mveRichard MacCutchan17-Sep-15 1:54 
Questiontranscript management using java Pin
Member 1197700411-Sep-15 4:45
Member 1197700411-Sep-15 4:45 
AnswerRe: transcript management using java Pin
Richard MacCutchan11-Sep-15 5:31
mveRichard MacCutchan11-Sep-15 5:31 
Questionbooks examples of precedures stored for sqlserver Pin
DAGOBERTO PAVEZ CASELLA8-Sep-15 6:37
professionalDAGOBERTO PAVEZ CASELLA8-Sep-15 6:37 
AnswerRe: books examples of precedures stored for sqlserver Pin
Afzaal Ahmad Zeeshan8-Sep-15 6:53
professionalAfzaal Ahmad Zeeshan8-Sep-15 6:53 
AnswerRe: books examples of precedures stored for sqlserver Pin
Wendelius8-Sep-15 7:08
mentorWendelius8-Sep-15 7:08 
QuestionDOM XSS and createElement() and getElementsByTagName() methods Pin
Supriya Tonape2-Sep-15 19:54
Supriya Tonape2-Sep-15 19:54 
SuggestionRe: DOM XSS and createElement() and getElementsByTagName() methods Pin
Richard MacCutchan2-Sep-15 21:14
mveRichard MacCutchan2-Sep-15 21:14 
GeneralRe: DOM XSS and createElement() and getElementsByTagName() methods Pin
Supriya Tonape2-Sep-15 22:22
Supriya Tonape2-Sep-15 22:22 
Questionjava Pin
Samson Edward2-Sep-15 15:22
Samson Edward2-Sep-15 15:22 
AnswerRe: java Pin
Richard MacCutchan2-Sep-15 21:13
mveRichard MacCutchan2-Sep-15 21:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.