Questions tagged [scramble]

a way to encode information to make the information unintelligible.

119 questions
0
votes
0 answers

Need to find all possible words from scrambled word (Permutation)

I know there are lots of questions about unscrambling the words but this one is different. I'll explain after the sample code. Sample Code //Function function unscramble($input){ $output = []; $input = strtolower($input); $words =…
James
  • 1
0
votes
1 answer

convert CRAM file to SAM file

I have a 50GB *.CRAM file and I need to convert it into *.SAM file My reference genome is hg38 and I got this CRAM from Nebula genomics How can I do it?
Guy Ab
  • 3
  • 2
0
votes
0 answers

Im writing a python program that unscrambles a given input string, permutates the unscrambled string and checks the dictionary for a common words

I've tried finding the intersection between my unscramble permutated dictionary and my dictionary words dictionary, using set but it's returning unhashable type: list error. How can I fix it and what am I doing wrong? from collections import…
0
votes
2 answers

How can i find all possible English words from a scrambled word

Given an input of scrambled word, and I have a file of English words. I want to find all possible words that can be formed from the scrambled word. from itertools import permutations def unscramble(scrambled_word): length=len(scrambled_word) …
0
votes
5 answers

How can I scramble a word with a factor?

I would like to scramble a word with a factor. The bigger the factor is, the more scrambled the word will become. For example, the word "paragraphs" with factor of 1.00 would become "paaprahrgs", and it will become "paargarphs" with a factor of…
iTayb
  • 12,373
  • 24
  • 81
  • 135
0
votes
1 answer

How can I improve my scramble string function whiche may include different symbols, numbers and string Golang?

The idea was to create a function that takes a string of some integers, text that can also include symbols like ',. etc. -If there is numbers in a string, return string -The first and last letter in a word should be untouched. Scramble only other…
0
votes
0 answers

scrambler function not working properly, might be because of difference calculator

I made a python scrambler but whenever I run my program, it strangely does not print anything, however, when I close my program, the python dialogue says the program is still running. This is my code: def differ(a1, a2): diff = 0 for i in…
thing10
  • 140
  • 1
  • 9
0
votes
1 answer

Persisting react state on page refreshes preferably on client side

Within my React app and being new to React, I am using localstorage to store some specific data that I require for page refreshes together with useEffect() hook. The only problem is that I would like to be able to hide this specific data, which I am…
ArthurJ
  • 777
  • 1
  • 14
  • 39
0
votes
1 answer

Tricky string scramble in react

The Question requires to return a string shuffled but in a specific way : We only want to “scramble” each word of the sentence, so the order of the words remain the same Each word will retain the position of the first and last letter, and the…
0
votes
1 answer

Scrambling and descrambling javascript array with salt

So i made a javascript string scrambler with md5. var MD5 = function(d){var r = M(V(Y(X(d),8*d.length)));return r.toLowerCase()};function M(d){for(var…
0
votes
0 answers

How can I rewrite a text scramble pure js code in vueJs?

I need to readapt a pure JavaScript code into a vue.js template. The base for it is this Text Scramble Effect: https://codepen.io/soulwire/pen/mErPAK Here is my version: https://codepen.io/iuliard/pen/ExyYyow Unfortunately I have to redo this in…
ird_m
  • 3
  • 2
0
votes
0 answers

Found an HTMLScrambler in ASP/C#: Is there a way to do this with PHP?

I'm in a project where I need a text scrambler that prevents people from accessing the text content of a site. I know that if the browser can render the site, there's always a way for the user to access the content. The user can take a picture of…
Rosamunda
  • 14,620
  • 10
  • 40
  • 70
0
votes
0 answers

Scramble words in a sentence?

I need help with the transform function. What i want to do is scramble tokens/words of a sentence and input them only to the encoder but for the decoder i want the same unscrambled tokens/words as input. I think i can't figure out the for loop…
OverDose
  • 13
  • 2
0
votes
3 answers

Is there any way in Python where we can find jumbled word entered by user exists given list without permutations code to make it faster?

suppose I have list of unique 300k+ items: mylist = ["door", "mango", "rose", "orange", "car", "knowledge", "flower", ...., 300k+ items] userinput = input() Now, if the user inputs jumbled word for "knowledge". eg. "dngwekleo", the program should…
sam
  • 65
  • 5
0
votes
3 answers

replace every character of a string with another character in ms server 2014

I am using Microsoft SQL Server 2014 and I am trying to update some of the columns in my table. I want to replace every character of a string with another character. For example, the word: HELLO123 I want to replace H with T, E with Q, L with Y, O…
yoohoo
  • 1,147
  • 4
  • 22
  • 39