a way to encode information to make the information unintelligible.
Questions tagged [scramble]
119 questions
3
votes
3 answers
How to make a Java File Reader
I'm trying to make a word scrambler for a project in class. It needs to read in a .txt file and output a String with all of the words in the file; but scrambled. for example:
This is how the words should be scrambled.
Ignoring punctuation and…

user2471416
- 31
- 1
- 4
2
votes
3 answers
Verify sqlite database before import into android app
I have an app in which I have added Export/Import DB functionality... I want to do two things:
1) When exporting: Scramble the exported database so that normal folks (I know that some people can decode the best camouflage techniques) cannot read the…

Sriman
- 788
- 9
- 25
2
votes
1 answer
Conditionally flip sign of float with SSE and/or AVX
With bitchar[] is an array of 0 and 1, I want to flip the sign of in[i] if bitchar[i] = 1 (scrambling):
float *in = get_in();
float *out = get_out();
char *bitchar = get_bitseq();
for (int i = 0; i < size; i++) {
out[i] = in[i] * (1 - 2 *…

Anna Noie
- 31
- 3
2
votes
0 answers
Word scramble not scrambling properly
Here is my JS fiddle: https://jsfiddle.net/apasric4/1e2uyorv/
This is the section of my code that's causing me issues:
const randomizeWord=(randomWord)=> {
let arr=randomWord.split("")
for (let i=arr.length<0; i>0;i--) {
let temp = arr[i];
…

Bob
- 117
- 6
2
votes
2 answers
How to scramble a sentence in Javascript preserving space location?
I found an script that will shuffle the string:
String.prototype.shuffle = function () {
var a = this.split(""),
n = a.length;
for (var i = n - 1; i > 0; i--) {
var j = Math.floor(Math.random() * (i + 1));
var tmp =…

Armin Nikdel
- 315
- 2
- 9
2
votes
2 answers
How to scramble characters in a string?
I am writing a script that reads in a text file. After the header lines I read the data lines. As each data line is read in, string values in columns AssetID and Description are to be scrambled. I split each line on tab delimiter. Knowing that…

Keyur Vaidya
- 35
- 1
- 6
2
votes
6 answers
How to write a function that returns true if a portion of str1 can be rearranged to str2?
I am having trouble with below question. I basically have to write a code/function that returns true if a portion of str1 can be rearraged to str2.
Write function scramble(str1,str2) that returns true if a portion of str1 characters can be…

Tae
- 197
- 5
- 13
2
votes
2 answers
Scramble & descramble text
I already got this method to scramble my text but I have no clue on how to unscramble it.
string input = "https://www.google.de/";
char[] chars = input.ToArray();
Random r = new Random(259);
for (int i = 0; i < chars.Length; i++)
{
int…

RaINi
- 53
- 1
- 5
2
votes
1 answer
Wait until button pressed(QT)
this is my first post on SO ^_^
I'm trying to implement a letter scramble game with QT framework. The main part is finished, but now i'm stunned - i can't figure out how to make program to wait for button to be pressed inside of a game.
Please help…

whalex
- 23
- 1
- 5
2
votes
2 answers
Data Masking in SAS: Scrambling Sensitive observations at character level
I'm working with client data in SAS with sensitive customer identification information. The challenge is to mask the field in such a way that it remains numeric/alphabetic/alphanumeric. I found a way of using Bitwise function in SAS (BXOR, BOR,…

Karan
- 31
- 1
- 3
2
votes
2 answers
Using Ruby to replace numeric data using simple hashmap
I'm trying to come up with a simple way using Ruby to scramble (or mask) some numeric data, in order to create a dummy data set from live data. I want to keep the data as close to the original format as possible (that is, preserve all non-numeric…

regulus
- 939
- 3
- 13
- 21
2
votes
1 answer
Puzzle Solving: Finding All Words Within a Larger Word in PHP
So I have a database of words between 3 and 20 characters long. I want to code something in PHP that finds all of the smaller words that are contained within a larger word. For example, in the word "inward" there are the words "rain", "win", "rid",…

TerranRich
- 1,263
- 3
- 20
- 38
1
vote
2 answers
Anonymise data in python across multiple tables and keep the relationships between related columns post anonymisation?
I am working on a project where there are two seperate csv files which I have pulled from a database. I want to load the data in python using pandas and anonymise contents of some of the columns in both tables. Some of these columns that has data…

Ferhat
- 394
- 1
- 4
- 17
1
vote
0 answers
How to find all common words in the same key of two dictionaries
I want to find all common words in the same key of 2 dictionaries.
The Key has a list of words as a value, and the key is the length of the items in the value list.
from collections import defaultdict
from itertools import permutations
def…

Taiwo Solomon
- 21
- 6
1
vote
0 answers
T-SQL function for data scrambling
GOAL: I have to obfuscate sensible data on a SQL Server database. Dynamic Data Masking is not an option. Data shuffle is not an option. The only option is Data Scramble.
SOLUTION: In the most hidden meander of the internet I found a very nice piece…

Francesco Mantovani
- 10,216
- 13
- 73
- 113