Questions tagged [code-security]
40 questions
1
vote
2 answers
C# - Get List of types that a source code file is using or refering to
I have a long .cs file (many such files) and to speed up the security audit I'd like to see a list of classes that this file is refering to.
For example:
using System;
using System.Collections;
using System.Collections.Generic;
using…

Matthei
- 98
- 7
1
vote
1 answer
Safer to set System property or add arguments in Java
I'm writing a program in Java 6 that needs to know the location of a properties file. Right now it is configured to do a System.getProperty to get the property file path which was added using the -D flag at runtime. I want to change it so that the…

user3813942
- 311
- 1
- 3
- 13
1
vote
0 answers
Code secure protection
I wrote an R script on an institutional computer. I saved it on an external device (USB PenDrive) and tested it on a computer not of my institution. When I run it to test it using R from Terminal and from GUI I never saved it on the host…

NewUsr_stat
- 2,351
- 5
- 28
- 38
1
vote
1 answer
Trying to set ProcessStrictHandleCheckPolicy returns 87 - Incorrect Function
I am trying to use SetProcessMitigationPolicy on Windows 10 to enable the ProcessStrictHandleCheckPolicy:
The process will receive a fatal error if it manipulates a handle that is not valid.
As a general rule, strict handle checking cannot be…

Ian Boyd
- 246,734
- 253
- 869
- 1,219
1
vote
0 answers
What can be the security related cons associated with phonegap or Apache cordova and how can we get our hybrid app secured from threats?
The security challenges are often faced while developing an application. Therefore, the information related to security of the application must be known to the developers.

Shubhansh Shukla
- 11
- 1
1
vote
5 answers
How to ensure that a method can only be called from a specific dll
I need to prepare my database for unit testing and hence in the set up method I want to get rid of the data.
However, I don't want to be anybody else but the unit test dll to be able to call into my DeleteAllData() method in my Data Access Layer.…

dexter
- 7,063
- 9
- 54
- 71
1
vote
2 answers
Block decompilation using something more than obfuscation
Whenever it comes to Dll security, all the results on online search talk about obfuscation. Now, my question is that is there anything more than obfuscation that we can do to make our assemblies more secure and immune to re-engineering?
The reason I…

Lost
- 12,007
- 32
- 121
- 193
1
vote
1 answer
Secure asymmetric key implementation client-side
I'm currently trying to develop a client-server structure, with the client being in .NET and the server being a PHP based SOAP server.
Now, I'm trying to implement an asymmetric key system using Rijndael 256 and a bit of fiddling about. I understand…
user1457922
0
votes
1 answer
Obfuscate WCF Proxy Classes
How to obfuscate WCF proxy classes using Dotfuscator ?
I have downloaded Dotfuscator Pro Edition Trial from their website. I obfuscated my app.exe file ,everything was nicely obfuscated but WCF proxy classes were not. (I ILDASMed the exe).
The WCF…

Hakim
- 75
- 1
- 11
0
votes
1 answer
Securing PHP code. Need some tips
I want to encode my codes with ionCube. But I do not know exactly how to prevent users from cracking it without encoding.
So I need some tips.
My project is a MVC.
Everything starts in index.php and it calls core.php and running goes.
How should I…

Valour
- 773
- 10
- 32
0
votes
2 answers
Getting some error while decrypting text in Java
I have below NodeJS code for decryption and it is working perfectly fine but when I am trying to convert the same code in Java at that time I am getting below error.
Given final block not properly padded. Such issues can arise if a bad key is used…

Jyubin Patel
- 1,373
- 7
- 17
0
votes
1 answer
How can i get code safety on dart-flutter
currently i am building app and how can I provide the security of code which typed in Dart Language? Also how can I block decompile my code and blocking accesing my code in Database?

kaan.py
- 27
- 1
- 3
0
votes
2 answers
What's the best way to enhance website security in inspect element?
Is there a way for prevent any user from editing my html code from UI using inspect element ? I have done research there's many why to prevent inspect element ( or Right-Click ) but seems not all of them are effective .
So my question is how to…

Duaa
- 77
- 3
- 10
0
votes
1 answer
Prevent Headers dump through executable in cocoa osx app
I am doing experiments on my cocoa mac application ,found I can dump all header files (.h files) of my application executable file using another class-dump executable available on Github.
I want to know how can I prevent my application from header…

tsmac
- 1
- 1
0
votes
1 answer
yii2 CSRF not working properly
I copied create form code from view source when user use to logged in and then I created html file from copied code then I logged out and then logged in again. when i submited html file then system accept it witout any csrf checking. not sure where…

Anil Kumar
- 701
- 11
- 28